package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.pojo.User;
import com.example.service.UserService;
import com.example.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
* @author Ansenown
* @description 针对表【user】的数据库操作Service实现
* @createDate 2025-05-03 19:36:50
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getUserListById(List<Integer> takersId) {
        List<User> userList = new ArrayList<>();
        userList = userMapper.selectList(new QueryWrapper<User>().in("indetifier",takersId));
        return userList;

    }
}




